﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using PhoneStore.DataAccess;

namespace PhoneStore.Presentation.CompositeControl
{
    public abstract class BaseUserControl : UserControl
    {
        BaseDAO _dao=null;
        public BaseDAO DAO
        {
            get
            {
                if (_dao == null)
                    _dao = new BaseDAO();
                return _dao;
            }
        }

        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);
            SetUpComboBox();
        }

        protected abstract void SetUpComboBox();

        protected abstract void EnableEditItemFunc(bool value);

        protected virtual List<ComboBox> PropertyComboBoxList { get; set; }


    }
}
